import TextButton from "./Text/Button.vue";
import TextPreview from "./Text/Preview.vue";
import ImageButton from "./Image/Button.vue";
import ImagePreview from "./Image/Preview.vue";
import FileButton from "./File/Button.vue";
import FilePreview from "./File/Preview.vue";
import LinkButton from "./Link/Button.vue";
import LinkPreview from "./Link/Preview.vue";
import MaterialButton from "./Material/Button.vue";
import MaterialPreview from "./Material/Preview.vue";

interface IMapConfig {
    [key: string]: {
        button: any;
        preview?: any;
    };
}

export const MAP_CONFIG: IMapConfig = {
    text: {
        button: TextButton,
        preview: TextPreview,
    },
    image: {
        button: ImageButton,
        preview: ImagePreview,
    },
    file: {
        button: FileButton,
        preview: FilePreview,
    },
    link: {
        button: LinkButton,
        preview: LinkPreview,
    },
    material: {
        button: MaterialButton,
        preview: MaterialPreview,
    },
};
